import dynamicCom1 from "./dynamic-com1.vue";
import dynamicCom2 from "./dynamic-com2.vue";

export default {
    components: {
        dynamicCom1,dynamicCom2
    },
    props: {
        index: Number,
    },
    render(h) {
        if (this.index == 1) {
            return <dynamic-com1 data={this.index}></dynamic-com1>
        } else {
            return <dynamic-com2></dynamic-com2>
        }
    }
}